package com.igeekhome.biz.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.igeekhome.biz.IAttendanceStatisticsService;
import com.igeekhome.dao.AttendanceStatisticsMapper;
import com.igeekhome.pojo.AttendanceStatistics;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 考勤表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-16
 */
@Service
public class AttendanceStatisticsServiceImpl extends ServiceImpl<AttendanceStatisticsMapper, AttendanceStatistics> implements IAttendanceStatisticsService {
    public AttendanceStatisticsServiceImpl() {
        super();
    }

    @Override
    public int getLogin(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.getlogin(qw);
    }

    @Override
    public int getFree(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.getfree(qw);
    }

    @Override
    public int getBusy(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.getbusy(qw);
    }

    @Override
    public int getOnline(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.getonline(qw);
    }

    @Override
    public int getOffice(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.getoffice(qw);
    }
}
